package com.gxuwz.stats.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.gxuwz.stats.entity.DecisionConsulting;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface DecisionConsultingMapper extends BaseMapper<DecisionConsulting> {

    /**
     * 管理员增加
     * @param decisionConsulting
     * @return
     */
//    @Insert("INSERT INTO rsp_decision_consulting " +
//            "(user_id,consulting_result_name, consulting_category, consulting_score, consulting_notes) " +
//            "VALUES " +
//            "(#{userId},#{consultingResultName}, #{consultingCategory}, #{consultingScore}, #{consultingNotes})")
//    int insertWithUserId(DecisionConsulting decisionConsulting);

    /**
     * 二级管理员-查询
     */
    IPage<DecisionConsulting> selectDecisionConsultingWithUser(IPage<DecisionConsulting> page, @Param(Constants.WRAPPER) Wrapper<DecisionConsulting> wrapper);
}
